package br.com.blutufi.model;

public class Contact {
	private String name;
	private String number;
	private String history;

	public Contact(String name, String number, String history) {
		super();
		this.name = name;
		this.number = number;
		this.history = history;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return this.number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getHistory() {
		return this.history;
	}

	public void setHistory(String history) {
		this.history = history;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Contact)) {
			return false;
		} else {
			Contact objContact = (Contact) obj;
			if ((objContact.getName() == this.getName())
					&& (objContact.getNumber() == this.getNumber())) {
				return true;
			}
		}
		return false;
	}

	@Override
	public String toString() {
		return name;
	}

}